/*
 * @Description: Animal.java
 * 
 * @Author: rendc
 * 
 * @Date: 2024-09-24 09:17:01
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2024-09-24 09:20:47
 */
/**
 * Animal
 */
public abstract class Animal {

  private String name;

  public Animal() {
  }

  public Animal(String name) {
    this.name = name;
  }

  public String getName() {
    return name;
  }

  // 抽象方法
  public abstract void eat();

  public abstract void sleep();
}